import 'package:flutter/material.dart';

extension ContextExt on BuildContext {
  double get statusBarHeight => MediaQuery.of(this).padding.top;

  double get bottomBarHeight => MediaQuery.of(this).padding.bottom;

  double get screenWidth => MediaQuery.of(this).size.width;

  double get screenHeight => MediaQuery.of(this).size.height;

  //获取屏幕尺寸
  Size get screenSize => MediaQuery.of(this).size;
}
